<%@page import="br.senai.sc.entity.Professor"%>
<%@page import="java.util.List"%>
<%@page import="br.senai.sc.controller.ProfessorController"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Lista de professores</title>
</head>
<body>
	<a href="${pageContext.request.contextPath}/cadastros/cadProfessor.jsp"> Inserir Novo
		
	</a> 
	<br />
	
	<table border="1">
		<tr><td>Nome</td><td>CPF</td><td>Endereco</td><td>Email</td><td>Telefone</td></tr>
		<c:forEach items="${professores}" var="professor">
			<tr>
				<td>${professor.nome}</td>
				<td>${professor.cpf}</td>
				<td>${professor.endereco}</td>
				<td>${professor.email}</td>
				<td>${professor.telefone}</td>
				<td>
					<a href="editarProfessor?cmd=editarProfessor&idProfessor=${professor.idProfessor}">Editar</a>
					
					<a href="excluirProfessor?cmd=excluirProfessor&idProfessor=${professor.idProfessor}">Excluir</a>
					 
					
				</td>
			</tr>
			
		</c:forEach>
	</table>
</body>
</html>